/**
 * 
 */
package edu.unicen.compilers.actions;

import java.util.ArrayList;

import edu.unicen.compilers.lexicon.LexicalAnalyzer;
import edu.unicen.compilers.parser.Parser;
import edu.unicen.compilers.parser.ParserVal;

/**
 * @author Emiliano
 *
 */
public class SemanticAction11 extends SemanticAction {

	/**
	 * @param la
	 */
	public SemanticAction11(LexicalAnalyzer la, Parser parser) {
		super(la, parser);
	}

	/* (non-Javadoc)
	 * @see edu.unicen.compilers.actions.SemanticAction#execute()
	 */
	@Override
	public void execute() {
		la.setLastCharacter('\0');
		ArrayList<String> v=new ArrayList<String>();
		v.add("STRING");
		la.putSymbol(la.getPartialLexeme(), v);
		la.setToken(CADENA);
		parser.setYylval(new ParserVal(la.getPartialLexeme()));
	}

}
